package net.frankish.moviebank.util;

import java.util.Properties;

public class Configs {

	public static final String DATA_FOLDER = "dataFolder";
	public static final String DEFAULT_LANGUAGE = "defaultLanguage";
	
	private Properties props = null;
	public static Configs instance = null;
	
	public Configs(Properties pro){
		props = pro;
		reportConfigs();
		instance = this;
	}
	public String getProperty(String key){
		return getProperty(key, null);
	}
	public String getProperty(String key, String def){
		return props.getProperty(key, def);
	}
	public static Configs getInstance(){			
		return instance;
}
	
	private void reportConfigs(){
		System.out.println(props);
	}
	
	
}
